﻿using System;
using System.Reflection;
using System.Configuration;
using IDAL.Common;
namespace DataFactory.Common
{
    /// <summary>
    /// 工厂层，网站配置
    /// </summary>
    public partial class DataAccess : BaseDataAccess
    {
        private DataAccess() { }
        /// <summary>
        /// 创建省份映射表
        /// </summary>
        /// <returns></returns>
        public static IProvince CreateProvince()
        {
            ClassName = PATH + ".Common.ProvinceDAL";
            return (IProvince)CreateFactory();
        }

        /// <summary>
        /// 创建城市映射
        /// </summary>
        /// <returns></returns>
        public static ICity CreateCity()
        {
            ClassName = PATH + ".Common.CityDAL";
            return (ICity)CreateFactory();
        }
    }
}
